﻿@using Web.Models
@model UserViewModel
@{
  ViewBag.Title = "Users";
}
<div>
    @section Name{<div>@ViewBag.Message @ViewBag.usname!</div>}
    @section Date{<div>@DateTime.Now.Date.ToShortDateString()</div>}
    @section Profile{
        <div>
            @using (Html.BeginForm())
            { 
                @Html.DropDownListFor(x => x.User.ProfileID,
                new SelectList(ViewBag.Prof, "ID", "LastName"), "Выберите профиль") 
            }            
            
        </div>}

    @section Menu{
        <div>
            @Html.Partial("MenuView", ViewData["Dish"])
        </div>
    }

</div>




@*@foreach (var p in Model)
{
  <div>
    <h3>@p.Profile.LastName</h3>
      <p>@p.Profile.FirstName</p>
      <p>@p.Profile.MiddleName</p>
  
  </div>
}*@